﻿using Iesi.Collections.Generic;
using Inovout.Models;
using System;
using System.Collections.Generic;

namespace Inovout.Kuajing.Models
{
    public partial class ShipmentOrder : DataObject
    {
        public virtual Shipper Shipper { get; set; }
        public virtual string No { get; set; }
        public virtual float Amount { get; set; }
        public virtual float Freight { get; set; }
        public virtual string LogisticsCompanyCode { get; set; }
        public virtual string LogisticsCompanyName { get; set; }
        public virtual string LogisticsOrderNo { get; set; }
        public virtual float ExpectedWeight { get; set; }
        public virtual ISet<ShipmentOrderItem> Items { get; set; }

        public virtual string ReceiverZipcode { get; set; }
        public virtual string ReceiverProvince { get; set; }
        public virtual string ReceiverCity { get; set; }
        public virtual string ReceiverCounty { get; set; }
        public virtual string ReceiverAddress { get; set; }
        public virtual string ReceiverName { get; set; }
        public virtual string ReceiverIdNo { get; set; }
        public virtual string ReceiverMobile { get; set; }
        public virtual string ReceiverPhone { get; set; }
        public virtual string PaymentCompanyCode { get; set; }
        public virtual string PaymentOrderNo { get; set; }
        public virtual string PaymentIdNo { get; set; }
        public virtual string ExternalShipperId { get; set; }
        public virtual ShipmentOrderStatus Status { get; set; }

        public virtual object GetValue(string name)
        {
            return this.GetType().GetProperty(name).GetValue(this, null);
        }
    }
}
